package filecomparison;


public class FileEntity {

    public int lineNumber;

    public String key;

    public String value;


    public FileEntity(int lineNumber) {
        this.lineNumber = lineNumber;
    }

    public FileEntity(int lineNumber, String key) {
        this.lineNumber = lineNumber;
        this.key = key;
    }

    public FileEntity(int lineNumber, String key, String value) {
        this.lineNumber = lineNumber;
        this.key = key;
        this.value = value;
    }

    @Override
    public boolean equals(Object obj) {
        if (this.key.equals(((FileEntity) obj).key)) {
            return true;
        }
        return false;

    }
}
